package com.jic.veteran.service;

import com.jic.veteran.dto.*;
import com.jic.veteran.model.AlumniSchoolAccommodation;
import com.jic.veteran.model.AlumniSchoolNews;
import com.jic.veteran.model.AlumniSchoolTeachers;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 文章管理Service
 * Created by mars on 2021/11/23.
 */
public interface AlumniSchoolService {

  /**
   * 新增或更新文章信息.
   * @param alumniSchoolInfoParam 文章信息
   * @return count
   */
  int schoolInfo(AlumniSchoolInfoParam alumniSchoolInfoParam);

  /**
   * 获取老师分页.
   */
  List<AlumniSchoolTeachers> getPageTeachers(Integer pageSize, Integer pageNum,String teacherName,Integer status);

  /**
   * 修改老师展示状态.
   * @param  id
   * @param status
   * @return count
   */
  int upTeacherStatus(Integer id, Integer status);

  /**
   * 新增老师.
   * @param  alumniAddTeacherParam
   * @return count
   */
  int addTeacher(AlumniAddTeacherParam alumniAddTeacherParam);

  /**
   * 修改老师.
   * @param  id,alumniAddTeacherParam
   * @return count
   */
  int aditTeacher(Integer id ,AlumniAddTeacherParam alumniAddTeacherParam);


  /**
   * 删除老师.
   * @param  id
   * @return count
   */
  int deleteTeacher(Integer id);


  /**
   * 获取新闻分页.
   */
  List<AlumniSchoolNews> getPageNews(Integer pageSize, Integer pageNum, String newsName, Integer status);



  /**
   * 修改新闻展示状态.
   * @param  id
   * @param status
   * @return count
   */
  int upNewsStatus(Integer id, Integer status);

  /**
   * 新增news.
   * @param  alumniAddNewsParam
   * @return count
   */
  int addNews(AlumniAddNewsParam alumniAddNewsParam);

  /**
   * 修改news.
   * @param  id,alumniAddNewsParam
   * @return count
   */
  int aditNews(Integer id , AlumniAddNewsParam alumniAddNewsParam);


  /**
   * 删除news.
   * @param  id
   * @return count
   */
  int deleteNews(Integer id);





  /**
   * 获取新闻分页.
   */
  List<AlumniSchoolAccommodation> getPageAccommodation(Integer pageSize, Integer pageNum, String accommodationName, Integer type);

  /**
   * 新增news.
   * @param  alumniAddAccommodationParam
   * @return count
   */
  int addAccommodation(AlumniAddAccommodationParam alumniAddAccommodationParam);

  /**
   * 修改news.
   * @param  id,alumniAddAccommodationParam
   * @return count
   */
  int aditAccommodation(Integer id , AlumniAddAccommodationParam alumniAddAccommodationParam);


  /**
   * 删除Accommodation.
   * @param  id
   * @return count
   */
  int deleteAccommodation(Integer id);


}
